package cn.wen.gulimall.gulimallauthserver.controller;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;import javax.servlet.http.HttpSession;/** * 处理社交登录请求 */public class OAuth2Controller {    @GetMapping("/oauth2.0/weibo/success")    public String weibo(@RequestParam("code") String code, HttpSession session) {        // 更加 code 换取accessToken        // HttpUtils.doPost('api.weibo.com')        session.setAttribute("login", "1111");        // 2、登录成功就跳回首页        return "";    }}